#ifndef _FNS_H
#define _FNS_H

/** Typedef for pointer to function being integrated. */
typedef double (*FnP)(double);

/** Structure giving information for a function. */
typedef struct {
  const char *name;	/** the function name */
  FnP f;		/** pointer to the function code */
} FnDef;

/** Array of FnDef to define function names and pointers. */
extern FnDef fns[];

/** # of entries in fns[]. */
extern int nFns;

#endif /* ifndef _FNS_H */
